package com.zxy.service.v2;

import com.zxy.dao.v2.StudentDao;
import com.zxy.entity.v2.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: TODO
 * @Author: zhuxianyu
 * @Date: 2021/12/18 15:01
 * @Version: 1.0
 */
@Service
public class StudentService {

    @Autowired
    private StudentDao studentDao;

    public void save(List<Student> studentList) {
        for (Student student : studentList) {
            studentDao.save(student);
        }
    }

}
